package com.imooc.order.message;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * StreamClient
 *
 * @author leon.cheng
 * @date 2018/12/11 17:00
 **/
public interface StreamClient {
    String INPUT="myMessage1";
    String OUTPUT="myMessage2";
    @Input(StreamClient.INPUT)
    SubscribableChannel input();

    @Output(StreamClient.OUTPUT)
    MessageChannel output();
}
